<template>
  <div class="category">
    <h2 class="title">{{ title }}</h2>
    <slot name="content">暂无信息</slot>
    <slot name="more"></slot>
  </div>
</template>

<script setup lang="ts" name="Child">
import { ref } from "vue";
defineProps(["title"]);
</script>

<style scoped>
.category {
  background-color: skyblue;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 0 10px black;
  width: 300px;
  height: 200px;
}
.title {
  background: orange;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}
</style>
